/*
 * ImageBox.h
 *
 *  Created on: 29-06-2013
 *      Author: Jarek
 */

#ifndef IMAGEBOX_H_
#define IMAGEBOX_H_

#include "ETexture.h"
#include "ETime.h"
#include "Component.h"

class ImageBox : public Component {
protected:
	Texture*	image;
	GLuint		indicesHandle;
	GLuint		verticesHandle;
	GLuint		texCoordHandle;

	GLenum		srcAlpha;
	GLenum		dstAlpha;
public:
	ImageBox();
	virtual ~ImageBox();

	virtual void		onInitialize(uint id, Texture* image, const BoundingBox& drawBox);
	virtual	void		onDestroy();
	virtual void		onDraw(const ETime& time);
};

#endif /* IMAGEBOX_H_ */
